@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

/* 基础样式 */
body {
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

.container {
    width: 90%;
    margin: 0 auto;
}

/* 头部导航栏 */
.header {
    background-color: #222;
    color: #fff;
    padding: 10px 0;
}

.header .logo img {
    width: 40px;
    vertical-align: middle;
}

.header .nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header .nav ul li {
    margin: 0 10px;
}

.header .nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
}

.header .nav ul li a:hover {
    background-color: #f0c14b;
    border-radius: 5px;
}

.header .nav ul li.hot a {
    background-color: #f0c14b;
    color: #fff;
    border-radius: 5px;
}

.header .nav ul li.vip a {
    background-color: #ff5722;
    color: #fff;
    border-radius: 5px;
}

.header .nav ul li.new a {
    background-color: #ff5722;
    color: #fff;
    border-radius: 5px;
}

.header .user-menu {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.header .user-menu a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}

.header .user-menu .badge {
    background-color: #ff5722;
    color: #fff;
    padding: 2px 5px;
    border-radius: 50%;
    font-size: 10px;
}

/* 搜索区域 */
.search-section {
    background-color: #fff;
    padding: 20px 0;
}

.search-section .search-form {
    display: flex;
    align-items: center;
}

.search-section input {
    flex: 1;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.search-section button {
    padding: 10px 20px;
    background-color: #f0c14b;
    border: none;
    color: #fff;
    border-radius: 5px;
    font-size: 14px;
    cursor: pointer;
}

.search-section .hot-search {
    margin-top: 10px;
    font-size: 14px;
}

.search-section .hot-search a {
    color: #f0c14b;
    text-decoration: none;
}

/* 促销横幅 */
.banner {
    background-color: #fff;
    padding: 10px 0;
}

.banner img {
    max-width: 100%;
    display: block;
}

/* 过滤器区域 */
.filter-section {
    background-color: #fff;
    padding: 20px 0;
}

.filter-section .filter-nav {
    margin-bottom: 10px;
}

.filter-section .filter-nav ul {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.filter-section .filter-nav ul li {
    margin: 0 5px;
}

.filter-section .filter-nav ul li a {
    color: #333;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
}

.filter-section .filter-nav ul li a:hover {
    background-color: #f0c14b;
}

.filter-section .filter-nav ul li.selected a {
    background-color: #f0c14b;
    color: #fff;
}

.filter-section .filter-nav ul li input[type="checkbox"] {
    margin-right: 5px;
}

.filter-section .filter-nav ul li button {
    padding: 5px 10px;
    background-color: #f0c14b;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

/* 主内容区域 */
.content-section {
    background-color: #fff;
    padding: 20px 0;
}

.courses {
    display: flex;
    flex-wrap: wrap;
}

.course-card {
    flex: 1 1 300px;
    margin: 10px;
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    overflow: hidden;
    transition: transform 0.3s;
}

.course-card:hover {
    transform: scale(1.03);
}

.course-card img {
    width: 100%;
    height: auto;
}

.course-info {
    padding: 10px;
}

.course-info h3 {
    font-size: 18px;
    margin: 0;
}

.course-info p {
    font-size: 14px;
    margin: 5px 0;
}

/* 右侧工具栏 */
.tools-bar {
    position: fixed;
    top: 50%;
    right: 20px;
    transform: translateY(-50%);
    width: 50px;
    z-index: 999;
}

.tools-bar .tool-item {
    background-color: #f0c14b;
    color: #fff;
    text-align: center;
    padding: 10px;
    margin: 5px 0;
    border-radius: 5px;
    cursor: pointer;
}

.tools-bar .tool-item i {
    margin-right: 5px;
}
